<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/8/6
 * Time: 13:29
 */

namespace App\Http\Middleware;

use Closure;

class CheckAdminLogin {


    public function handle($request, Closure $next)
    {
        if (!session('admin')) {
            return redirect(urlAdmin('login','getLogin'));
        }
        return $next($request);
    }

}

